<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Modeling</title>
{:importCSS("template.css|style.css|work.css|font.css")}
{:importJS("jquery.min.js")}
</head>
<body>
<include file="public:header" />
<div class="main center clearfix">

	<div class="guidbox">
		<form method=get id=wsearch >
        <div class="searchbox">
            <div class="clear"></div>
            <div class="namebox box"><input type="text" id="name" name="name" value="" placeholder="{:L('WORK_NAME')}" onfocus="setStyleOne(this.id)" onblur="setStyleTwo(this.id)"/></div>
            <div class="typebox box">
            	<div class="inputimg"><img src="__ROOT__/themes/images/client-type.png" /></div>
                <div class="inputname">{:L('CONTRACTOR_TYPE')}</div>
                <div id="dropDownList1" class="dropDownList dropdown">
  					<select class="hide" name="type">
                    	<option value="">{:L('WORK_PLEASE_SELECT')}</option>
                    	<php> $cgtype = M("cgtype")->order("`order` asc")->select(); </php>
                    	<volist name="cgtype" id="data">
   						<option value="{$data.id}">{:L($data['cgtypename'])}</option>
   						</volist>
  					</select>
  					<span class="">{:L('WORK_PLEASE_SELECT')}</span>
            		<ul class="">
            		</ul>
        		</div>
        	</div>
            <div class="dosearch">
            	<a class="button" id="dosearch" href="javascript:void(0)" onclick="$('#wsearch').submit()">{:L('CONTRACTOR_SEARCH')}</a>
            </div>
            <div class="advance">
            	<a href="javascript:void(0);" class="now" style="display:none;" id="open_ao" onclick="jQuery('#open_ao').hide();jQuery('#close_ao').show();jQuery('#advancebox').slideUp();">{:L('WORK_ADVANCED')}</a>
                <a href="javascript:void(0);" id="close_ao" onclick="jQuery('#close_ao').hide();jQuery('#open_ao').show();jQuery('#advancebox').slideDown();">{:L('WORK_ADVANCED')}</a>
            </div>
            <div class="clear"></div>
            <div id="advancebox" style="display:none;">
            	<div class="timebox box">
            		<div class="inputimg"><img src="__ROOT__/themes/images/client-time.png" /></div>
                	<div class="inputname">{:L('WORK_TIME')}</div>
                	<div id="dropDownList2" class="dropDownList dropdown">
                    	<select class="hide" name="time">
                  			<option value="">{:L('WORK_PLEASE_SELECT')}</option>
   							<option value="3">3 {:L('WORK_DAYS')}</option>
   							<option value="5">5 {:L('WORK_DAYS')}</option>
   							<option value="10">10 {:L('WORK_DAYS')}</option>
                    		<option value="15">15 {:L('WORK_DAYS')}</option>
                    		<option value="20">20 {:L('WORK_DAYS')}</option>
  						</select>
  						<span class="">{:L('WORK_RECENT_DAYS')}</span>
            			<ul class="">
            			</ul>
        			</div>
        		</div>
                <div class="countrybox box">
    				<div class="inputimg"><img src="__ROOT__/themes/images/client-country.png" /></div>
            		<div class="inputname">{:L('WORK_LOCAL')}</div>
                	<div class="choice"><img src="__ROOT__/themes/images/su-disagree.png" id="checkLocal"/></div>
            		<input type="hidden" id="local" name="local" value="0" />
    			</div>
            	<div class="budbox box">
            		<div class="inputimg"><img src="__ROOT__/themes/images/client-budget.png" /></div>
                	<div class="inputname">{:L('CONTRACTOR_BUDGET')}</div>
                	<div id="dropDownList3" class="dropDownList dropdown">
                    	<select class="hide" name="budget">
                  			<option value="0">{:L('WORK_PLEASE_SELECT')}</option>
                            <option value="1">$0-$1000</option>
   							<option value="2">$1000-$3000</option>
   							<option value="3">$3000-$5000</option>
   							<option value="4">$5000-$8000</option>
                    		<option value="5">$8000-$10000</option>
                            <option value="6">$10000-$15000</option>
                            <option value="7">$10000-$25000</option>
                            <option value="8">$25000-$40000</option>
                            <option value="9">$40000-$60000</option>
                            <option value="10">$60000-$100000</option>
                    		<option value="11">$100000 More</option>
  						</select>
  						<span class="">{:L('WORK_PLEASE_SELECT')}</span>
            			<ul class="">
            			</ul>
        			</div>
        		</div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
        </form>
    </div>
    
    <div class="clear"></div>
    
    <div class="headline">
    	<div class="pname line">{:L('CONTRACTOR_PROJECT_NAME')}</div>
        <div class="country line">{:L('WORK_COUNTRY')}</div>
        <div class="pdate tline{:($sort=='dateup'||$sort=='datedown')?' now':''}">{:L('WORK_PUBLISH_DATE')}</div>
        <div class="order">
        	<a id="dateup" href="{$_url}sort=dateup"><div class="arrow-up{$sort=='dateup'?' now':''}"></div></a>
            <a id="datedown" href="{$_url}sort=datedown"><div class="arrow-down{$sort=='datedown'?' now':''}"></div></a>
        </div>
        <div class="time tline{:($sort=='timeup'||$sort=='timedown')?' now':''}">{:L('WORK_TIME_LEFT')}</div>
        <div class="order">
        	<a id="timeup" href="{$_url}sort=timeup"><div class="arrow-up{$sort=='timeup'?' now':''}"></div></a>
            <a id="timedown" href="{$_url}sort=timedown"><div class="arrow-down{$sort=='timedown'?' now':''}"></div></a>
        </div>
        <div class="bud tline{:($sort=='budup'||$sort=='budeup')?' now':''}">{:L('CONTRACTOR_BUDGET')}</div>
        <div class="order">
        	<a id="budup" href="{$_url}sort=budup"><div class="arrow-up{$sort=='budup'?' now':''}"></div></a>
            <a id="budeup" href="{$_url}sort=budeup"><div class="arrow-down{$sort=='budeup'?' now':''}"></div></a>
        </div>
        <div class="com tline{:($sort=='comup'||$sort=='comdown')?' now':''}">{:L('WORK_COMPETOR')}</div>
        <div class="order com">
        	<a id="comup" href="{$_url}sort=comup"><div class="arrow-up{$sort=='comup'?' now':''}"></div></a>
            <a id="comdown" href="{$_url}sort=comdown"><div class="arrow-down{$sort=='comdown'?' now':''}"></div></a>
        </div>
    </div>
    
    <div class="clear"></div>
    
    <table class="list">
    	<volist name="_list" id="vo">
    	<tr class="oneproject">
    		<td class="opname"><a href="{:U('/work/view/'.$vo['id'])}">{$vo.name|h}</a></td>
            <td class="opsta"><img src="__ROOT__/themes/images/st-bidding.png" /></td>
        	<td class="opcountry">{:M('country')->getFieldByCode($vo['country'],"en")}</td>
        	<td class="opdate">{:date('Y-m-d',$vo['pubtime'])}</td>
            <td class="optime">{$vo.endtime|mdate}</td>
            <td class="opbud">$ {$vo.budget|h}</td>
            <td class="opcom">{$vo.bidcount}</td>
        </tr>
        </volist>
        <!--<tr class="oneproject">
    		<td class="opname">One suit of game sences</td>
            <td class="opsta"><img src="__ROOT__/themes/images/st-complete.png" /></td>
        	<td class="opcountry">CHINA</td>
        	<td class="opdate">2013-05-18</td>
            <td class="optime">28h</td>
            <td class="opbud">3500RMB</td>
            <td class="opcom">28</td>
        </tr>
        <tr class="oneproject">
    		<td class="opname">A movie charactor</td>
            <td class="opsta"><img src="__ROOT__/themes/images/st-working.png" /></td>
        	<td class="opcountry">CHINA</td>
        	<td class="opdate">2013-05-18</td>
            <td class="optime">28h</td>
            <td class="opbud">3500RMB</td>
            <td class="opcom">28</td>
        </tr>
        <tr class="oneproject">
    		<td class="opname">A movie charactor</td>
            <td class="opsta"><img src="__ROOT__/themes/images/st-working.png" /></td>
        	<td class="opcountry">CHINA</td>
        	<td class="opdate">2013-05-18</td>
            <td class="optime">28h</td>
            <td class="opbud">3500RMB</td>
            <td class="opcom">28</td>
        </tr>
        <tr class="oneproject">
    		<td class="opname">A movie charactor</td>
            <td class="opsta"><img src="__ROOT__/themes/images/st-working.png" /></td>
        	<td class="opcountry">CHINA</td>
        	<td class="opdate">2013-05-18</td>
            <td class="optime">28h</td>
            <td class="opbud">3500RMB</td>
            <td class="opcom">28</td>
        </tr>
        <tr class="oneproject">
    		<td class="opname">A movie charactor</td>
            <td class="opsta"><img src="__ROOT__/themes/images/st-working.png" /></td>
        	<td class="opcountry">CHINA</td>
        	<td class="opdate">2013-05-18</td>
            <td class="optime">28h</td>
            <td class="opbud">3500RMB</td>
            <td class="opcom">28</td>
        </tr>-->
        <tr class="status">
        	<td><div>{:L('WORK_COMPLETED')}</div><img src="__ROOT__/themes/images/st-complete.png" /></td>
            <td><div>{:L('WORK_WORKING')}</div><img src="__ROOT__/themes/images/st-working.png" /></td>
            <td><div>{:L('WORK_BIDDING')}</div><img src="__ROOT__/themes/images/st-bidding.png" /></td>           
            <td class="sta-tittle">{:L('WORK_PROJECT_STATUS')}</td>
        </tr>
        <tr>
        	<td class="page">{$_page}</td>
        </tr>
    </table>
    
</div>
<include file="public:footer" />
{:importJS("downlist.js|input.js|signup.js")}
</body>
</html>
